﻿using Mockery.Core;
using NUnit.Framework;
using Rhino.Mocks;

namespace Mockery.UnitTest
{
    [TestFixture]
    public class MockeryStateEventsTests
    {
        [Test]
        public void MockeryStateEvent_OnFirstAssertTest()
        {
            InjectedTest.Target<MockeryStateEvents>()
                .Arrange(a => a.AddSingletonType(new MockRepository())
                                  .AddStrictMock<IDisposableContextState>()
                                  .ExpectOn<IDisposableContextState>(e => Expect.Call(() => e.Dispose())))
                .Act(a => a.OnFirstAssert())
                .Assert(() => Assert.IsTrue(true));
        }
    }
}
